﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoapNotify.Model
{
    /// <summary>
    /// 任务上报数据模型
    /// </summary>
    public class TaskReportModel : TaskModel
    {
        /// <summary>
        /// 任务状态 未开始 处理中 停止（代表异常） 完成
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 上传进度
        /// </summary>
        public int Progress { get; set; }
        /// <summary>
        /// 错误码
        /// </summary>
        public int ErrorCount { get; set; } = 0;
        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMessage { get; set; } = "";
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime FinishTime { get; set; }
        /// <summary>
        /// 任务创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 是否需要回执
        /// </summary>
        public bool NeedNotify { get; set; } = false;
        /// <summary>
        /// 回执时间
        /// </summary>
        public DateTime LastNotifyTime { get; set; } = DateTime.MinValue;
    }
}
